﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;

namespace UnitTests
{
    public class Statistics
    {
        public static void Save(string name, List<long> data)
        {
            using (var s = File.Open("c:\\Statistics\\" + name + DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss") + ".xml", FileMode.OpenOrCreate))
            {
                XmlSerializer xs = new XmlSerializer(typeof(List<long>));
                xs.Serialize(s, data);
            }
        }
    }
}
